<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>国贸城</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="stylesheet" href="./resources/css/amazeui.min.css">
    <link rel="stylesheet" href="./resources/css/app.css">
</head>
<body style="background: #fff;">
<header data-am-widget="header" class="am-header am-header-default joan-head2 ">
    <div class="am-header-left am-header-nav">
        <a href="javascript:history.back()" class="">
            <i class="am-icon-chevron-left"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        <a href="" class="">购物车</a>
    </h1>
    <div class="am-header-right am-header-nav">
        <a href="" class="">
            <i class="am-header-icon am-icon-del"></i>
        </a>
    </div>
</header>

<div class="shopcartit">已购商品</div>
<div class="c-comment-list" style="border: 0;">
    <c:forEach var="shopcar" items="${sessionScope.shopCar}">
        <div class="o-con2">
            <c:if test="${shopcar.name.equals('orange')}">
            <div class="o-con-img"><img src="./resources/images/sc.jpg"/></div>
            </c:if>
            <c:if test="${shopcar.name.equals('apple')}">
                <div class="o-con-img"><img src="./resources/images/apple.jpg"/></div>
            </c:if>
            <div class="o-con-txt2">
                <p>${shopcar.name}</p>
                <p style="color: #afafaf;">12个装</p>
                <div class="con">
                    <div class="price">￥<span>${shopcar.price}</span></div>
                    <div class="p-pur">
                        <a class="decrease" href="subUpdateShopServlet.do?fruit=${shopcar.name}">-</a>
                        <em class="sy_num">${shopcar.number}</em>
                        <a class="increase" href="updateShopCarServlet.do?fruit=${shopcar.name}">+</a>
                    </div>
                </div>
            </div>
        </div>
    </c:forEach>
</div>
<div class="shaopprice">
    <em>￥ <span>${sessionScope.result}</span></em>
    <a href="ordercon.jsp">立即结算</a>
</div>


<div data-am-widget="navbar" class="am-navbar  am-navbar-default gm-foot" id="">
    <ul class="am-navbar-nav am-cf am-avg-sm-4">
        <li>
            <a href="index.jsp" class="">
                <span class="am-icon-home"></span>
                <span class="am-navbar-label">首页</span>
            </a>
        </li>
        <li>
            <a href="shop.jsp" class="">
                <span class="am-icon-th-large"></span>
                <span class="am-navbar-label">商品</span>
            </a>
        </li>
        <li>
            <a href="member.jsp" class="">
                <span class="am-icon-user"></span>
                <span class="am-navbar-label">个人中心</span>
            </a>
        </li>
        <li>
            <a href="shopcar.jsp" class="curr">
                <span class="am-icon-shopping-cart"></span>
                <span class="am-navbar-label">购物车</span>
            </a>
        </li>
        <li>
            <a href="talk.jsp" class="">
                <span class="am-icon-file-text-o"></span>
                <span class="am-navbar-label">果友说</span>
            </a>
        </li>
    </ul>
</div>

<script src="./resources/js/jquery.min.js"></script>
<script src="./resources/js/amazeui.min.js"></script>
</body>
</html>